package com.bckj.fastboot.iot.common.repository;

import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.iot.common.dto.query.IotBasicDataQuery;
import com.bckj.fastboot.iot.common.dto.request.IotBasicDataRequest;
import com.bckj.fastboot.iot.common.dto.response.IotBasicDataResponse;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * IotBasicDataRepository
 *
 * @author wfc
 * @date 2025/9/25 11:55
 **/
public interface IotBasicDataRepository {

    boolean save(IotBasicDataRequest request);

    boolean updateById(IotBasicDataRequest request);

    boolean removeById(Long id);

    IotBasicDataResponse details(Long id);

    List<IotBasicDataResponse> findList(IotBasicDataQuery query);

    PageResult<IotBasicDataResponse> page(Pageable page, IotBasicDataQuery query);
}
